package com.kettle;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;

/**
 * 启动入口
 */
@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
@EnableCaching
public class SynchroquartzApplication  extends SpringBootServletInitializer{
	
	@Bean
    public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
        return new PropertySourcesPlaceholderConfigurer();
    }
	
    public static void main(String[] args) {
        SpringApplication.run(SynchroquartzApplication.class, args);
    }

}
